package com.zy.explore.client.infrastructure.exception;

import feign.FeignException;

/**
 * description 远程业务异常，FeignClient
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021-05-05 17:53
 */
public class RemoteException extends FeignException implements StatusCode {

    public RemoteException(int status, String message) {
        super(status, message);
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }

    @Override
    public int getCode() {
        return super.status();
    }
}
